package com.yht.basic.query;

import lombok.Data;

/**
 * 用于进行分页查询的参数都在这个类中
 */
@Data
public class BaseQuery {

    /*当前页*/
    private Integer currentPage = 1;
    /*每页条数*/
    private Integer pageSize = 5;

    public Integer getBegin(){
        return (currentPage - 1) * pageSize;
    }
}
